home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / event.d / rc5 < prev    next >
Encoding:
Text File  |  2007-03-11  |  403 b   |  21 lines

  1. # rc5 - runlevel 5 compatibility
  2. #
  3. # This task runs the old sysv-rc runlevel 5 (user defined) scripts.  It
  4. # is usually started by the telinit compatibility wrapper.
  5.  
  6. start on runlevel 5
  7.  
  8. stop on runlevel [!5]
  9.  
  10. console output
  11. script
  12.     set $(runlevel --set 5 || true)
  13.     if [ "$1" != "unknown" ]; then
  14.         PREVLEVEL=$1
  15.         RUNLEVEL=$2
  16.         export PREVLEVEL RUNLEVEL
  17.     fi
  18.  
  19.     exec /etc/init.d/rc 5
  20. end script
  21.